package com.ruoyi.system.api;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteCustomerFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程客户服务 @iCAN
 */
@FeignClient(contextId = "remoteCustomerService", value = "ipms-crm", fallbackFactory = RemoteCustomerFallbackFactory.class)
//@FeignClient(contextId = "remoteCustomerService", value = "ipms-crm")
public interface RemoteCustomerService
{
    /*通过id查找客户*/
    @GetMapping(value = "/crm/find/{id}")
    public AjaxResult findCustomer(@PathVariable("id") Integer id);
}
